package com.smart_campus.sys.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Alfred
 * @date 2020/4/28 12:10
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResultObj {

    public static final ResultObj RESET_SUCCESS = new ResultObj(200, "重置成功");
    public static final ResultObj RESET_ERROR = new ResultObj(-1, "重置成功");

    public static final ResultObj IS_LOGIN = new ResultObj(200, "已登录");
    public static final ResultObj UN_LOGIN = new ResultObj(-1, "未登录");

    public static final ResultObj DELETE_SUCCESS = new ResultObj(200, "删除成功,请刷新当前页面");
    public static final ResultObj DELETE_ERROR = new ResultObj(-1, "删除失败");

    public static final ResultObj ADD_SUCCESS = new ResultObj(200, "添加成功,请刷新当前页面");
    public static final ResultObj ADD_ERROR = new ResultObj(-1, "添加失败");

    public static final ResultObj UPDATE_SUCCESS = new ResultObj(200, "更新成功,请刷新当前页面");
    public static final ResultObj UPDATE_ERROR = new ResultObj(-1, "更新失败");
    public static final ResultObj DISPATH_SUCCESS = new ResultObj(200, "分配成功");
    public static final ResultObj DISPATH_ERROR = new ResultObj(-1, "分配失败");

    public static final ResultObj DELETE_IOGINFO_YES = new ResultObj(200, "日志删除成功");
    public static final ResultObj DELETE_IOGINFO_NO = new ResultObj(-1, "日志删除失败");

    public static final ResultObj INSERT_NOTICE_YES = new ResultObj(200, "公告添加成功");
    public static final ResultObj INSERT_NOTICE_NO = new ResultObj(-1, "公告添加失败");

    public static final ResultObj DELETE_NOTICE_YES = new ResultObj(200, "公告删除成功");
    public static final ResultObj DELETE_NOTICE_NO = new ResultObj(-1, "公告删除失败");

    public static final ResultObj UPDATE_NOTICE_YES = new ResultObj(200, "公告修改成功");
    public static final ResultObj UPDATE_NOTICE_NO = new ResultObj(-1, "公告修改失败");

    public static final ResultObj INSERT_ROLE_YES = new ResultObj(200, "角色添加成功");
    public static final ResultObj INSERT_ROLE_NO = new ResultObj(-1, "角色添加失败");

    public static final ResultObj DELETE_ROLE_YES = new ResultObj(200, "角色删除成功");
    public static final ResultObj DELETE_ROLE_NO = new ResultObj(-1, "角色删除失败");

    public static final ResultObj UPDATE_ROLE_YES = new ResultObj(200, "角色更新成功");
    public static final ResultObj UPDATE_ROLE_NO = new ResultObj(-1, "角色更新失败");

    public static final ResultObj DELETE_USER_YES = new ResultObj(200, "用户删除成功");
    public static final ResultObj DELETE_USER_NO = new ResultObj(-1, "用户删除失败");

    public static final ResultObj UPDATE_USER_ROLE_YES = new ResultObj(200, "用户角色修改成功");
    public static final ResultObj UPDATE_USER_ROLE_NO = new ResultObj(-1, "用户角色修改失败");

    public static final ResultObj UserANDRoleANDDeptVO_YES = new ResultObj(200, "用户修改成功");
    public static final ResultObj UserANDRoleANDDeptVO_NO = new ResultObj(-1, "用户修改失败");

    public static final ResultObj Major_UPDATE_YES = new ResultObj(200, "专业修改成功");
    public static final ResultObj Major_UPDATE_NO = new ResultObj(-1, "专业修改失败");
    public static final ResultObj Major_DELETE_YES = new ResultObj(200, "专业删除成功");
    public static final ResultObj Major_DELETE_NO = new ResultObj(-1, "专业删除失败");
    public static final ResultObj Major_INSERT_YES = new ResultObj(200, "专业添加成功");
    public static final ResultObj Major_INSERT_NO = new ResultObj(-1, "专业添加失败");

    public static final ResultObj Class_UPDATE_YES = new ResultObj(200, "班级修改成功");
    public static final ResultObj Class_UPDATE_NO = new ResultObj(-1, "班级修改失败");
    public static final ResultObj Class_DELETE_YES = new ResultObj(200, "班级删除成功");
    public static final ResultObj Class_DELETE_NO = new ResultObj(-1, "班级删除失败");
    public static final ResultObj Class_INSERT_YES = new ResultObj(200, "班级添加成功");
    public static final ResultObj Class_INSERT_NO = new ResultObj(-1, "班级添加失败");

    public static final ResultObj IDENTITY_TRUE = new ResultObj(200, "身份验证成功");
    public static final ResultObj IDENTITY_FALSE = new ResultObj(-1, "身份验证失败");
    public static final ResultObj IDENTITY_EXIST = new ResultObj(-1, "用户已存在");

    public static final ResultObj COMMENT_TRUE = new ResultObj(200, "评论成功");
    public static final ResultObj COMMENT_FALSE = new ResultObj(-1, "评论失败");

    public static final ResultObj RETRIEVE_TRUE = new ResultObj(200, "找回成功");
    public static final ResultObj RETRIEVE_FALSE = new ResultObj(-1, "找回失败");

    public static final ResultObj News_UPDATE_YES = new ResultObj(200, "新闻修改成功");
    public static final ResultObj News_UPDATE_NO = new ResultObj(-1, "新闻修改失败");
    public static final ResultObj News_DELETE_YES = new ResultObj(200, "新闻删除成功");
    public static final ResultObj News_DELETE_NO = new ResultObj(-1, "新闻删除失败");
    public static final ResultObj News_INSERT_YES = new ResultObj(200, "新闻添加成功");
    public static final ResultObj News_INSERT_NO = new ResultObj(-1, "新闻添加失败");

    public static final ResultObj Estimate_DELETE_YES = new ResultObj(200, "留言删除成功");
    public static final ResultObj Estimate_DELETE_No = new ResultObj(-1, "留言删除失败");

    private Integer code = 200;
    private String msg = "";
    private Object token = "";

    //public static final String LOGIN_SUCCESS = "LOGIN_SUCCESS";


    public ResultObj(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
